package OutputStreamW_;

import java.io.*;

public class Outputw_ {
    public static void main(String[] args) throws IOException {
        String pathname="d:\\a.txt";
        BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(new FileOutputStream(pathname),"gbk"));
        bw.write("唱,跳,rap,篮球");
        bw.close();
    }
}
